package com.tangruojie.lambda;

public class LambdaDemo01 {

    public static void main(String[] args) {

        Thread t1 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("t1线程启动了");
            }
        });
        t1.start();

        Thread t2 = new Thread(() -> System.out.println("t2线程启动了"));
        t2.start();

        System.out.println("main线程启动了");

    }

}
